<script setup>
import PreviewPdf from "./components/PreviewPdf.vue"
import { ref } from "vue"
const view = ref(false)
const change = () => {
  view.value = !view.value
  // console.log(view.value);
}
</script>

<template>
  <div class="container">
    <button @click="change">显示</button>
    <PreviewPdf v-if="view" />
  </div>
</template>

<style scoped>
.container {
  box-sizing: border-box;
  height: 100vh;
  width: 100vw;
  padding-top: 20px;
}
</style>
